// src/api/permissionApi.js
import { apiClient } from './base'

export const getPermissions = (params) => apiClient.get('/permissions', { params })
export const createPermission = (data) => apiClient.post('/permissions', data)
export const updatePermission = (data) => apiClient.put('/permissions', data)
export const deletePermission = (id) => apiClient.delete(`/permissions/${id}`)